package com.qen.sheji.daili;

import cn.hutool.core.lang.Console;

public class StaticProxy implements Subject {

    private RealSubject realSubject;

    public StaticProxy(RealSubject realSubject) {
        this.realSubject = realSubject;
    }

    @Override
    public void operation() {
        Console.log("begin--------StaticProxy");

        realSubject.operation();

        Console.log("end----------StaticProxy");
    }
}
